<div class="about_pl" id="about_pl">
    <?php use_helper("users"); ?>
    <script type="text/javascript">
        function edf() {
            var name = document.getElementById('pl_key');
            name.className = "ipt33";
        }
        var u_id = "<?php echo $sf_user->getAttribute('userId') ?>";
        function post_question() {

            if (null != u_id && "" != u_id && u_id > 0) {
            } else {
                u_id = "1";
            }
            var content = $("#pl_key").val();
            if (content.trim() == '') {
                alert("请勿提交空问题！");
                return;

            }
            $.ajax({
                type: "POST",
                url: "<?php echo url_for('question/post') ?>",
                data: "content=" + content + "&userId=" + u_id + "&qcId=<?php echo $channel_id ?>&src=questionList",
                success: questionsResult
            });
//            alert("问题已提交!");
        }
        function questionsResult(content) {
            $('#about_pl').html(content);
//            alert("问题已提交!");
        }
    </script>
    <h2>
        <div class="com_tit" style="width: 180px;">我要提问<span>QUESTIONS</span></div>
        <!--        <font>请<a href="#">登录</a>ieasy进行评论</font>-->
    </h2>


    <div class="pl_box">
        <form method="post" action="#">
            <input type="text" class="ipt3" id="pl_key" onclick="edf()" name="pl_key">&nbsp;<input type="button"
                                                                                                   value="发&nbsp;布"
                                                                                                   id="bt4"
                                                                                                   name="plsumbit"
                                                                                                   class="btn4"
                                                                                                   onclick="post_question()">
        </form>
    </div>
    <!--############################-->
    <!--    <div class="page_num"><b>1-9</b> of <b>9</b></div>-->

    <?php
    foreach ($questions as $q) {
    echo '<div class="pl_con">';
    echo '<div class="pl_con_l"><a href="#"><img src="' . fileExist($q->getUsers()->getAvatar()) . '"/></a></div>';
    echo '<div class="pl_con_r">';
    echo '<div class="pl_username"><span>' . $q->getUsers()->getNickname() . '</span> <span class="pl_date">评论时间：' . utility::getGentleDateTime($q->getCreateTime()) . '</span></div>';
    echo '<div class="pl_contant">' . $q->getContent() . '</div>';
    echo '</div>';
    echo '</div>';
}
    ?>


    <!--列表结束-->


    <!--    <div class="page_list">上一页 <a class="now02" href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a-->
    <!--            href="#">5</a> 下一页-->
    <!--    </div>-->
</div>